//package com.dao;
//
//import com.entity.Login;
//import com.entity.LoginUser;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.jdbc.core.BeanPropertyRowMapper;
//import org.springframework.jdbc.core.JdbcTemplate;
//import org.springframework.stereotype.Repository;
//
//import java.util.List;
//
///**
// * @author WZ
// * @version 1.0
// * @date 2021/8/23 10:11
// */
//@Repository
//public class LoginDaoImpl implements LoginDao{
//    @Autowired
//    private JdbcTemplate jdbcTemplate;
//
//    @Override
//    public List<Login> login(String account) {
//        String sql="select account,password from a_user where account=?";
//        List<Login> query = jdbcTemplate.query(sql,new BeanPropertyRowMapper<Login>(Login.class),account);
//            return query;
//
//
//
//
//    }
//
//    public List<LoginUser> findUser(String account) {
////           String sql="select name,sex,fromWhere,score,url from animekiara where name LIKE '%' ? '%'";
////            String sql="select name,sex,fromWhere,score,url from animekiara where name= ? ";
//        String sql="select userId,username from a_user where account =?";
//        List<LoginUser> userInfo=jdbcTemplate.query(sql,new BeanPropertyRowMapper<LoginUser>(LoginUser.class),account);
//        return userInfo;
//
//
//    }
//}
